package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.math.BigInteger;

@FieldTypeAnnotation(tableName = "t_l_ck_hunt_battle", desc = "狩猎攻击日志", autoSave = true, uploadCk = true)
public class LogHuntBattle extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "第几个怪物")
    private int monsterIndex;
    @FieldTypeAnnotation(desc = " 门客id")
    private int patronsId;
    @FieldTypeAnnotation(desc = "是否使用商会议事厅门客")
    private boolean isChamber;
    @FieldTypeAnnotation(desc = "商会议事厅门客所属用户id")
    private long chamberUserId;
    @FieldTypeAnnotation(desc = "造成伤害")
    private BigInteger damage;
    @FieldTypeAnnotation(desc = "怪物血量")
    private BigInteger monsterBlood;
    @FieldTypeAnnotation(desc = "是否击杀")
    private boolean isKill;

    public LogHuntBattle(long userId, int monsterIndex, int patronsId, boolean isChamber, long chamberUserId, BigInteger damage, BigInteger monsterBlood, boolean isKill) {
        this.userId = userId;
        this.monsterIndex = monsterIndex;
        this.patronsId = patronsId;
        this.isChamber = isChamber;
        this.chamberUserId = chamberUserId;
        this.damage = damage;
        this.monsterBlood = monsterBlood;
        this.isKill = isKill;
    }

    public long getUserId() {
        return userId;
    }

}
